import {
	kgRequest
} from "../../config/request";

// 获取所有标签
export function fetchAllLabelsApi() {
	return kgRequest.get({
		url: '/play/getAllLabel'
	})
}

// 根据标签获取数据
export function fetchPlayByLableApi(label_id, {
	page,
	pagesize
}) {
	return kgRequest.post({
		url: '/play/getPlayByLable',
		data: {
			label_id,
			page,
			pagesize
		}
	})
}

// 获取剧场第一个标签里的精选数据
export function fetchOtherPlayApi() {
	return kgRequest.post({
		url: '/play/getSelectedPlay'
	})
}